package com.blog.Bard.base.dao;

import java.util.Map;

import org.springframework.data.jpa.repository.Query;

import com.blog.Bard.base.pojo.BardLabel;
import com.blog.Bard.common.dao.BaseRepository;

public interface BardLabelDao extends BaseRepository<BardLabel, Integer> {

	/**
	 * 获取最新的序号
	 * @return
	 * @throws Exception
	 */
	@Query(nativeQuery = true, value = " select IFNULL((max(seq) + 1),1) nextSeq FROM BardLabel \n")
	Map<String, Object> getNextSeq() throws Exception;
	
}
